
package com.fx.apartment.modules.activity.entity;

import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fx.apartment.common.tool.utils.DateUtil;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;

/**
 * 投票纪录实体类
 *
 * @author QinXueFeng
 * @since 2021-04-19
 */
@Data
@TableName("ctn_activity_votes")
@ApiModel(value = "ActivityVotes对象", description = "投票纪录")
public class ActivityVotes implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	* 主键
	*/
		@ApiModelProperty(value = "主键")
		private Long id;
	/**
	* 活动id
	*/
		@ApiModelProperty(value = "活动id")
		@NotNull(message = "活动id不能为空")
		private Long activityId;
	/**
	* 投票主题Id
	*/
		@ApiModelProperty(value = "投票对象Id")
		@NotNull(message = "投票对象Id不能为空")
		private Long participationId;
	/**
	* 创建人
	*/
		@ApiModelProperty(value = "创建人")
		private Long createUser;
	/**
	* 创建时间
	*/
		@ApiModelProperty(value = "创建时间")
		@DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
		@JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
		private Date createTime;
	/**
	* 是否已删除
	*/
		@ApiModelProperty(value = "是否已删除")
		private Integer isDeleted;


}
